package com.woniuxy.controller;


import com.woniuxy.service.VoteMenusService;
import com.woniuxy.util.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhouzhou
 * @since 2022-06-23
 */
@RestController
public class VoteMenusController {

    @Resource
    VoteMenusService voteMenusService;

    @RequestMapping("/getAllMenus")
    public Result getAllmenus(int accountId){
        Result menuesByAccountId = null ;
        menuesByAccountId = voteMenusService.getMenuesByAccountId(accountId);
        return menuesByAccountId;
    }
}

